<template>
  <div>
    <p> {{ str }} </p>
    <button @click="btn">点击翻转</button>
  </div>
</template>

<script>
export default {
  data () {
    return {
      str: 'hello 321',

    }
  },

  created () {

  },

  methods: {
    btn () {
      this.str = 
      this.str.split("").reverse().join("")
    }
  }
}
</script>

<style scoped lang='less'>

</style>

